<?php
    $dir = dirname(dirname(dirname(__FILE__)));
    require_once $dir.'/templates/adminTemplate.php';
    
    $content = '<div class="bs-docs-example">
            <div id="navbar-example" class="navbar navbar-static">
              <div class="navbar-inner">
                <div class="container" style="width: auto;">
                  <a class="brand" href="#">AG</a>
                  <ul class="nav" role="navigation">
                    <li class="dropdown">
                      <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Usuarios <b class="caret"></b></a>
                      <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#" id="newCategoryLink">Nueva </a></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Editar </a></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Eliminar</a></li>
                        <li role="presentation" class="divider"></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
                      </ul>
                    </li>
                    <li class="dropdown">
                      <a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">xxx <b class="caret"></b></a>
                      <ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#" id="newCompanyLink">Nueva </a></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Editar </a></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Eliminar </a></li>
                        <li role="presentation" class="divider"></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
                      </ul>
                    </li>
                  </ul>
                  <ul class="nav pull-right">
                    <li id="fat-menu" class="dropdown">
                      <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i><b class="caret"></b></a>
                      <ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Salir</a></li>
                      </ul>
                    </li>
                  </ul>
                </div>
              </div>
            </div> <!-- /navbar -->
            </div>
            
            <div id="receptor"></div> 
            
            <!-- Modal -->
            <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Mensaje</h3>
              </div>
              <div class="modal-body">
                <p>Datos almacenados con exito.</p>
              </div>
              <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
              </div>
            </div>
';
    //js load
    $dirFormsRendering = '../admin/js/formsRendering.js';
    $dirFormsRendering = '<script type="text/javascript" src="'.$dirFormsRendering.'"></script>';
    //include js
    $pageTemplate = str_replace('##JSPATH##', $dirFormsRendering, $template);
    
    //bluid page
    $body = str_replace('##BODY##', $content, $pageTemplate);    
    echo $body;

?>
